

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class QuestionsAnswers
{
System.Int64 _ID =-1;
public System.Int64 ID
{
get { return _ID;}
set { _ID = value;}
}
System.Int64 _QuestionsID =-1;
public System.Int64 QuestionsID
{
get { return _QuestionsID;}
set { _QuestionsID = value;}
}
System.String _AnswerAR ="";
public System.String AnswerAR
{
get { return _AnswerAR;}
set { _AnswerAR = value;}
}
System.String _AnswerEN ="";
public System.String AnswerEN
{
get { return _AnswerEN;}
set { _AnswerEN = value;}
}
System.Boolean _IsAnswer =false;
public System.Boolean IsAnswer
{
get { return _IsAnswer;}
set { _IsAnswer = value;}
}
public QuestionsAnswers()
{
}
public QuestionsAnswers(System.Int64 __QuestionsID,System.String __AnswerAR,System.String __AnswerEN,System.Boolean __IsAnswer)
{
_QuestionsID = __QuestionsID;
_AnswerAR = __AnswerAR;
_AnswerEN = __AnswerEN;
_IsAnswer = __IsAnswer;
}
public QuestionsAnswers(System.Int64 __ID,System.Int64 __QuestionsID,System.String __AnswerAR,System.String __AnswerEN,System.Boolean __IsAnswer)
{
_ID = __ID;
_QuestionsID = __QuestionsID;
_AnswerAR = __AnswerAR;
_AnswerEN = __AnswerEN;
_IsAnswer = __IsAnswer;
}


             public override bool Equals(object obj)
         {
             if (obj is QuestionsAnswers)
             {
                 QuestionsAnswers newObj = (QuestionsAnswers)obj;

                 if (newObj.ID == this.ID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
